package com.example.commons.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 角色权限关联表
 */
@Data
@TableName
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RoleMenuRelation {
    /**
     * 角色id
     */
    @TableId(type = IdType.AUTO)
    private Long roleId;
    /**
     * 菜单id
     */
    private Long menuId;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}
